package org.hxyjs.service;

import org.hxyjs.dto.DTO;
import org.hxyjs.entity.Restaurant;
import org.hxyjs.entity.User;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface RestaurantService {
    /**
     * 查询全部学生
     * @return
     */
    public DTO<Restaurant> getAllRestaurants() throws Exception;
    /**
     *  查询学生带选课
     * @param rno
     * @return
     */

    public DTO<Restaurant> deleteRestaurantByRno(String rno) throws Exception;
    /**
     *  删除学生
     * @param restaurant
     * @return
     */
    public DTO<Restaurant> updateRestaurantByRno(Restaurant restaurant)  throws Exception;
    /**
     *  增加学生
     * @param restaurant
     * @return
     */
    public DTO<Restaurant> addRestaurantByRno(Restaurant restaurant)  throws Exception;


    public DTO<Restaurant> getRestaurantByRno(String rno)  throws Exception;

    public DTO<Restaurant> selectRestaurantWithorderAndUser(String rno)  throws Exception;

    public DTO<Restaurant> getRestaurantsByPage(PageInfo pageInfo) throws Exception;

    public DTO<Restaurant> getRestaurantsByPage(PageInfo pageInfo,String cacheId) throws Exception;

    DTO<Restaurant> getFreeRestaurantByDate(String beginDate, String endDate)  throws Exception;

}
